<%--
  Created by IntelliJ IDEA.
  User: 98103
  Date: 2020/7/20
  Time: 18:46
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" errorPage="" %>
<html>
  <head>
    <title>用户登录</title>
  </head>
  <body>
  <%
    Object username = session.getAttribute("username");
    if(username==null){
  %>
    <a href="/stu/login.jsp">用户登录</a>
  <%
    } else{
  %>
  <a href="/stu/addStudent.jsp">添加学生</a>
  <a href="/stu/listStudentServlet">查看学生</a>
  <% } %>

  </body>
</html>
